const path = require('path')

function resolve (dir) {
  return path.join(__dirname, dir)
}

module.exports = {

  devServer: {

    // open: true /*  默认运行自动运行 */

  },

  lintOnSave: true,

  chainWebpack: (config) => {
    config.resolve.alias

      .set('@', resolve('src'))
      .set('common', resolve('src/components'))
      .set('content', resolve('src/content'))

    // 这里只写了两个个，你可以自己再加，按这种格式.set('', resolve(''))
  }

}
